<%--
  Created by IntelliJ IDEA.
  User: HUAWEI
  Date: 2024/9/2
  Time: 10:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Medicamp Responsive Bootstrap Template">
    <meta name="keywords" content="Pixel">
    <meta name="author" content="rkwebdesigns">
    <!-- Site Title   -->
    <title>公告</title>
    <!-- Bootstrap -->
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/css/bootstrap-dropdownhover.min.css" rel="stylesheet">
    <!-- Fonts Awesome -->
    <link href="${pageContext.request.contextPath}/static/css/font-awesome.min.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href='https://fonts.googleapis.com/css?family=Raleway:400,200,300,100,500,600,700,800,900' rel='stylesheet'
          type='text/css'>
    <link href="https://fonts.googleapis.com/css?family=Poppins:300,400" rel="stylesheet">
    <!-- animate Effect -->
    <link href="${pageContext.request.contextPath}/static/css/animate.css" rel="stylesheet">
    <!-- Main CSS -->
    <link href="${pageContext.request.contextPath}/static/css/style.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="${pageContext.request.contextPath}/static/css/responsive.css" rel="stylesheet">

</head>
<style>
    #dataList {
        border: none; /* 隐藏表格的外边框 */
    }
    #dataList th, #dataList td {
        border: none; /* 隐藏表头和单元格的边框 */
    }
</style>
<body>
<header id="header" class="head">
    <div class="top-header" style="background: #00acd6">
        <div class="container">
            <div class="row ">
                <ul class="contact-detail2 col-md-6 pull-left">
                    <li><i class="fa fa-mobile" style="color: white"></i><font color="white">联系我们 +86
                        4004008299 </font></li>
                </ul>
                <div class="social-links col-md-6 pull-right">
                    <ul class="social-icons pull-right">
                        <li><i class="fa fa-envelope-o" style="color: white"></i><font color="white">
                            yiliaojiankang@gmail.com </font></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <nav class="navbar navbar-default navbar-menu">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">
                    <div class="logo-text"><span><samp>医</samp>医疗</span>健康系统</div>
                </a>
            </div>
            <form action="${pageContext.request.contextPath}/userInfo/parseId.do?id=${id}" method="post">
                <input type="hidden" name="id" value="${id}">
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" data-hover="dropdown" data-animations="fadeIn">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="${pageContext.request.contextPath}/userInfo/parseId.do?id=${id}">首页</a></li>
                        <li><a href="${pageContext.request.contextPath}/doctor/findDoctorsKe2.do?id=${id}">专家介绍</a></li>
                        <li><a href="${pageContext.request.contextPath}/department/findAll.do?id=${id}">体检</a></li>
                        <li><a href="${pageContext.request.contextPath}/register/findPatientById.do?id=${id}">挂号</a></li>
                        <li><a href="${pageContext.request.contextPath}/admin/echarts.do">可视化</a></li>
                        <li><a href="${pageContext.request.contextPath}/messageList/messageFindAll2.do">公告</a></li>
                        <li><a href="${pageContext.request.contextPath}/userInfo/findUserById.do?id=${id}">个人中心</a></li>
                    </ul>
                </div>
            </form>
        </div>
    </nav>
</header>
<center>
    <div><img src="${pageContext.request.contextPath}/static/img/msg2.jpg"></div>
    <form id="f1" action="${pageContext.request.contextPath}/messageList/messageFindAll2.do" method="post">
    </form>
    <table id="dataList" class="table table-bordered table-striped table-hover dataTable" border="none">
        <thead>
        <tr>




        </tr>
        </thead>
        <tbody>
        <c:forEach var="message" items="${page.list}">
            <tr>

                <td>
                    <fmt:formatDate value="${message.time}"  pattern="yyyy-MM-dd"/>
                </td>
                <td>${message.title}</td>
<td><button onclick="toView(${message.id})">查看</button> </td>

            </tr>
        </c:forEach>


        </tbody>


    </table>

</center>
<section id="section10" class="section-10-background">
    <div class="container">
        <div class="row">
            <div class="col-md-9 col-lg-9">
                <div class="section-10-box-text-cont">
                    <h3>We Are Ready to Check Your Health,<span class="color-yellow">  Call : +86-400-400-8299</span></h3>
                </div>
            </div>
        </div>
    </div>
</section>
<section id="footer-bottom" class="footer-bottom">
    <div class="container">
        <div class="row">
            <div class="col-md-9 col-lg-9">
                <div class="copyright">Copyright &copy; 2024.Company name All rights reserved.</div>
            </div>
        </div>
    </div>
</section>

<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/jquery.plugin.min.js"></script>
<script src="../static/js/jquery.isotope.min.js"></script>
<script src="../static/js/jquery.magnific-popup.min.js"></script>
<script src="../static/js/bootstrap-dropdownhover.min.js"></script>
<script src="../static/js/wow.min.js"></script>
<script src="../static/js/waypoints.min.js"></script>
<script src="../static/js/jquery.counterup.min.js"></script>
<script src="../static/js/main.js"></script>
<script>
    function toView(id){
        window.location.href="${pageContext.request.contextPath}/messageList/findMessageById2.do?id="+id;
    }
</script>
</body>

</html>
